package com.baiyun.stock.service;

import com.baiyun.stock.pojo.domain.*;
import com.baiyun.stock.utils.PageResult;
import com.baiyun.stock.vo.resp.R;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface StockService {
    /**
     * 获取大盘数据
     * @return
     */
    R<List<InnerMarketDomain>> innerIndexAll();

    /**
     * 板块数据
     * @return
     */
    R<List<StockBlockDomain>> sectorAllLimit();

    /**
     * 分页获取股票数据
     * @param page
     * @param pageSize
     * @return
     */
    R<PageResult> getStockPageInfo(Integer page, Integer pageSize);

    /**
     * 获取个股涨跌
     * @param
     * @return
     */
    R<List<StockUpdownDomain>> getStockUpdown();

    /**
     * 获取个股涨跌
     * @return
     */
    R<Map> getStockUpdownCount();

    /**
     * 导出excel报表
     * @param response
     * @param page
     * @param pageSize
     */
    void stockExport(HttpServletResponse response, Integer page, Integer pageSize);

    /**
     * 获取大盘成交量
     * @return
     */
    R<Map> stockTradeVol4InnerMarket();

    R<Map> stockUpDownScopeCount();

    R<List<Stock4MinuteDomain>> stockScreenTimeSharing(String stockCode);

    R<List<Stock4EvrDayDomain>> stockCreenDkLine(String stockCode);
}
